package grape.crm.rest.client.customer;

import grape.crm.service.customer.param.AddCustomerParam;
import grape.crm.service.customer.po.Customer;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>
 * crm 客户客户端
 * </p>
 *
 * @author yangwei
 * @since 2020-10-02 10:22
 */
@Component
@FeignClient(value = "grape-crm")
public interface CustomerClient {

    @PostMapping(value = "/crm/customer/inner")
    public Customer create(@RequestBody AddCustomerParam addCustomerParam);
}
